import { request2 } from '@/utils/request2'
// import { request } from '@/utils/request'
import { AuthParams } from "./types"
// 实名认证
export const handleAuth = (data:AuthParams) => {
    return request2({
      url: '/api/mini-program/talents/apply/authentication',
      method: 'post',
      data
    })
  }

// 获取认证信息
export const getAuthInfo = () => {
    return request2({
      url: '/api/mini-program/talents/user/authInfo',
      method: 'get',
    })
  }

// 解绑实名
export const unbinding = () => {
    return request2({
      url: '/api/mini-program/talents/dx/dxRelieveAuth',
      method: 'get',
    })
  }
